<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>
<script>

    // 申明式函数

    function get() {
        console.log('申明式函数');
    }


    // 表达式式函数
    var sum = function () {
        console.log('表达式式匿名函数');
    }


    var all = function getSum(){
        console.log('表达式式命名函数');
    }

</script>

</html>